.class Lcom/estrongs/android/pop/esclasses/n$c;
.super Landroid/view/GestureDetector$SimpleOnGestureListener;
.source "GestureVideoController.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/esclasses/n;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "c"
.end annotation


# instance fields
.field private a:Z

.field private b:Z

.field private c:Z

.field private d:Z

.field final synthetic e:Lcom/estrongs/android/pop/esclasses/n;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/esclasses/n;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/n$c;->e:Lcom/estrongs/android/pop/esclasses/n;

    invoke-direct {p0}, Landroid/view/GestureDetector$SimpleOnGestureListener;-><init>()V

    return-void
.end method


# virtual methods
.method public onDoubleTap(Landroid/view/MotionEvent;)Z
    .locals 1

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/n$c;->e:Lcom/estrongs/android/pop/esclasses/n;

    iget-boolean v0, p1, Lcom/estrongs/android/pop/esclasses/f;->f:Z

    if-nez v0, :cond_0

    invoke-virtual {p1}, Lcom/estrongs/android/pop/esclasses/n;->g()V

    :cond_0
    const/4 p1, 0x1

    return p1
.end method

.method public onDown(Landroid/view/MotionEvent;)Z
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/esclasses/n$c;->e:Lcom/estrongs/android/pop/esclasses/n;

    iget-boolean v1, v0, Lcom/estrongs/android/pop/esclasses/n;->o:Z

    const/4 v2, 0x0

    if-eqz v1, :cond_1

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, p1}, Lcom/estrongs/android/pop/esclasses/n;->a(Landroid/content/Context;Landroid/view/MotionEvent;)Z

    move-result p1

    if-eqz p1, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/n$c;->e:Lcom/estrongs/android/pop/esclasses/n;

    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/n;->b(Lcom/estrongs/android/pop/esclasses/n;)Landroid/media/AudioManager;

    move-result-object v0

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Landroid/media/AudioManager;->getStreamVolume(I)I

    move-result v0

    invoke-static {p1, v0}, Lcom/estrongs/android/pop/esclasses/n;->a(Lcom/estrongs/android/pop/esclasses/n;I)I

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/n$c;->e:Lcom/estrongs/android/pop/esclasses/n;

    invoke-virtual {p1}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    iget v0, v0, Landroid/view/WindowManager$LayoutParams;->screenBrightness:F

    iput v0, p1, Lcom/estrongs/android/pop/esclasses/n;->r:F

    const/4 p1, 0x1

    .line 4
    iput-boolean p1, p0, Lcom/estrongs/android/pop/esclasses/n$c;->a:Z

    .line 5
    iput-boolean v2, p0, Lcom/estrongs/android/pop/esclasses/n$c;->b:Z

    .line 6
    iput-boolean v2, p0, Lcom/estrongs/android/pop/esclasses/n$c;->c:Z

    .line 7
    iput-boolean v2, p0, Lcom/estrongs/android/pop/esclasses/n$c;->d:Z

    return p1

    :cond_1
    :goto_0
    return v2
.end method

.method public onScroll(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/esclasses/n$c;->e:Lcom/estrongs/android/pop/esclasses/n;

    iget-boolean v1, v0, Lcom/estrongs/android/pop/esclasses/n;->o:Z

    if-eqz v1, :cond_9

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, p1}, Lcom/estrongs/android/pop/esclasses/n;->a(Landroid/content/Context;Landroid/view/MotionEvent;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto/16 :goto_3

    .line 2
    :cond_0
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    sub-float/2addr v0, v1

    .line 3
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result p1

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v1

    sub-float/2addr p1, v1

    .line 4
    iget-boolean v1, p0, Lcom/estrongs/android/pop/esclasses/n$c;->a:Z

    const/4 v2, 0x1

    if-eqz v1, :cond_4

    .line 5
    invoke-static {p3}, Ljava/lang/Math;->abs(F)F

    move-result p3

    invoke-static {p4}, Ljava/lang/Math;->abs(F)F

    move-result p4

    const/high16 v1, 0x40000000    # 2.0f

    mul-float p4, p4, v1

    const/4 v1, 0x0

    cmpl-float p3, p3, p4

    if-ltz p3, :cond_1

    const/4 p3, 0x1

    goto :goto_0

    :cond_1
    const/4 p3, 0x0

    :goto_0
    iput-boolean p3, p0, Lcom/estrongs/android/pop/esclasses/n$c;->b:Z

    if-nez p3, :cond_3

    .line 6
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result p2

    iget-object p3, p0, Lcom/estrongs/android/pop/esclasses/n$c;->e:Lcom/estrongs/android/pop/esclasses/n;

    invoke-virtual {p3}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object p3

    invoke-static {p3}, Lcom/estrongs/android/pop/utils/t;->e(Landroid/content/Context;)I

    move-result p3

    div-int/lit8 p3, p3, 0x2

    int-to-float p3, p3

    cmpg-float p2, p2, p3

    if-gez p2, :cond_2

    .line 7
    iput-boolean v2, p0, Lcom/estrongs/android/pop/esclasses/n$c;->c:Z

    goto :goto_1

    .line 8
    :cond_2
    iput-boolean v2, p0, Lcom/estrongs/android/pop/esclasses/n$c;->d:Z

    .line 9
    :cond_3
    :goto_1
    iput-boolean v1, p0, Lcom/estrongs/android/pop/esclasses/n$c;->a:Z

    .line 10
    :cond_4
    iget-boolean p2, p0, Lcom/estrongs/android/pop/esclasses/n$c;->b:Z

    if-eqz p2, :cond_6

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/n$c;->e:Lcom/estrongs/android/pop/esclasses/n;

    iget p2, p1, Lcom/estrongs/android/pop/esclasses/f;->j:I

    const/4 p3, 0x5

    if-ne p2, p3, :cond_5

    return v2

    .line 12
    :cond_5
    invoke-virtual {p1, v0}, Lcom/estrongs/android/pop/esclasses/n;->a(F)V

    goto :goto_2

    .line 13
    :cond_6
    iget-boolean p2, p0, Lcom/estrongs/android/pop/esclasses/n$c;->c:Z

    if-eqz p2, :cond_7

    .line 14
    iget-object p2, p0, Lcom/estrongs/android/pop/esclasses/n$c;->e:Lcom/estrongs/android/pop/esclasses/n;

    invoke-static {p2, p1}, Lcom/estrongs/android/pop/esclasses/n;->a(Lcom/estrongs/android/pop/esclasses/n;F)V

    goto :goto_2

    .line 15
    :cond_7
    iget-boolean p2, p0, Lcom/estrongs/android/pop/esclasses/n$c;->d:Z

    if-eqz p2, :cond_8

    .line 16
    iget-object p2, p0, Lcom/estrongs/android/pop/esclasses/n$c;->e:Lcom/estrongs/android/pop/esclasses/n;

    invoke-virtual {p2, p1}, Lcom/estrongs/android/pop/esclasses/n;->b(F)V

    :cond_8
    :goto_2
    return v2

    .line 17
    :cond_9
    :goto_3
    invoke-super {p0, p1, p2, p3, p4}, Landroid/view/GestureDetector$SimpleOnGestureListener;->onScroll(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z

    move-result p1

    return p1
.end method

.method public onSingleTapConfirmed(Landroid/view/MotionEvent;)Z
    .locals 1

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/n$c;->e:Lcom/estrongs/android/pop/esclasses/n;

    iget-boolean v0, p1, Lcom/estrongs/android/pop/esclasses/f;->e:Z

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {p1}, Lcom/estrongs/android/pop/esclasses/f;->a()V

    goto :goto_0

    .line 3
    :cond_0
    invoke-virtual {p1}, Lcom/estrongs/android/pop/esclasses/f;->f()V

    :goto_0
    const/4 p1, 0x1

    return p1
.end method
